.class Lcom/example/m6wmr/LoginActivity$21;
.super Ljava/lang/Thread;
.source "LoginActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/LoginActivity;->regster()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/LoginActivity;

.field private final synthetic val$BaiduAppId:Ljava/lang/String;

.field private final synthetic val$msg:Landroid/os/Message;

.field private final synthetic val$password:Ljava/lang/String;

.field private final synthetic val$password2:Ljava/lang/String;

.field private final synthetic val$phone:Ljava/lang/String;

.field private final synthetic val$tname:Ljava/lang/String;

.field private final synthetic val$treg_regcode:Ljava/lang/String;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/LoginActivity;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/os/Message;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/LoginActivity$21;->this$0:Lcom/example/m6wmr/LoginActivity;

    iput-object p2, p0, Lcom/example/m6wmr/LoginActivity$21;->val$tname:Ljava/lang/String;

    iput-object p3, p0, Lcom/example/m6wmr/LoginActivity$21;->val$phone:Ljava/lang/String;

    iput-object p4, p0, Lcom/example/m6wmr/LoginActivity$21;->val$password:Ljava/lang/String;

    iput-object p5, p0, Lcom/example/m6wmr/LoginActivity$21;->val$password2:Ljava/lang/String;

    iput-object p6, p0, Lcom/example/m6wmr/LoginActivity$21;->val$BaiduAppId:Ljava/lang/String;

    iput-object p7, p0, Lcom/example/m6wmr/LoginActivity$21;->val$treg_regcode:Ljava/lang/String;

    iput-object p8, p0, Lcom/example/m6wmr/LoginActivity$21;->val$msg:Landroid/os/Message;

    .line 964
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 8

    .prologue
    .line 966
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 971
    new-instance v5, Ljava/lang/StringBuilder;

    iget-object v6, p0, Lcom/example/m6wmr/LoginActivity$21;->this$0:Lcom/example/m6wmr/LoginActivity;

    iget-object v6, v6, Lcom/example/m6wmr/LoginActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v6}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v6, "/index.php?ctrl=app&action=reg&tname="

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    .line 972
    iget-object v6, p0, Lcom/example/m6wmr/LoginActivity$21;->val$tname:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "&phone="

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget-object v6, p0, Lcom/example/m6wmr/LoginActivity$21;->val$phone:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "&pwd="

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget-object v6, p0, Lcom/example/m6wmr/LoginActivity$21;->val$password:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "&pwd2="

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget-object v6, p0, Lcom/example/m6wmr/LoginActivity$21;->val$password2:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "&userid="

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget-object v6, p0, Lcom/example/m6wmr/LoginActivity$21;->val$BaiduAppId:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "&code="

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget-object v6, p0, Lcom/example/m6wmr/LoginActivity$21;->val$treg_regcode:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "&datatype=json"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    .line 971
    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 974
    .local v3, "url":Ljava/lang/String;
    const-string v5, "Loginactivity"

    new-instance v6, Ljava/lang/StringBuilder;

    const-string v7, "regster() "

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v6, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v5, v6}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 976
    const-string v5, "\u6ce8\u518c--------\u300b\u300b\u300b"

    invoke-static {v5, v3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 978
    iget-object v5, p0, Lcom/example/m6wmr/LoginActivity$21;->this$0:Lcom/example/m6wmr/LoginActivity;

    iget-object v5, v5, Lcom/example/m6wmr/LoginActivity;->m:Lmyapp/MyApp;

    invoke-static {v3, v5}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v2

    .line 981
    .local v2, "str":Ljava/lang/String;
    :try_start_0
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1, v2}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 982
    .local v1, "json":Lorg/json/JSONObject;
    const-string v5, "error"

    invoke-virtual {v1, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    const-string v6, "true"

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_0

    .line 985
    iget-object v5, p0, Lcom/example/m6wmr/LoginActivity$21;->val$msg:Landroid/os/Message;

    const-string v6, "msg"

    invoke-virtual {v1, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, v5, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 986
    iget-object v5, p0, Lcom/example/m6wmr/LoginActivity$21;->val$msg:Landroid/os/Message;

    const/4 v6, 0x1

    iput v6, v5, Landroid/os/Message;->arg1:I

    .line 987
    iget-object v5, p0, Lcom/example/m6wmr/LoginActivity$21;->this$0:Lcom/example/m6wmr/LoginActivity;

    # getter for: Lcom/example/m6wmr/LoginActivity;->h:Landroid/os/Handler;
    invoke-static {v5}, Lcom/example/m6wmr/LoginActivity;->access$31(Lcom/example/m6wmr/LoginActivity;)Landroid/os/Handler;

    move-result-object v5

    iget-object v6, p0, Lcom/example/m6wmr/LoginActivity$21;->val$msg:Landroid/os/Message;

    invoke-virtual {v5, v6}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 1039
    .end local v1    # "json":Lorg/json/JSONObject;
    :goto_0
    return-void

    .line 991
    .restart local v1    # "json":Lorg/json/JSONObject;
    :cond_0
    const-string v5, "msg"

    invoke-virtual {v1, v5}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v1

    .line 993
    const-string v5, ">>>>>>>>>>>>>>><<<<<<<<<<<<<"

    invoke-virtual {v1}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v5, v6}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 1003
    iget-object v5, p0, Lcom/example/m6wmr/LoginActivity$21;->this$0:Lcom/example/m6wmr/LoginActivity;

    const-string v6, "userInfo"

    const/4 v7, 0x0

    invoke-virtual {v5, v6, v7}, Lcom/example/m6wmr/LoginActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v4

    .line 1004
    .local v4, "userInfo":Landroid/content/SharedPreferences;
    invoke-interface {v4}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v5

    const-string v6, "uid"

    const-string v7, "uid"

    invoke-virtual {v1, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-interface {v5, v6, v7}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v5

    invoke-interface {v5}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 1006
    invoke-interface {v4}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v5

    const-string v6, "username"

    const-string v7, "username"

    invoke-virtual {v1, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-interface {v5, v6, v7}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v5

    invoke-interface {v5}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 1008
    invoke-interface {v4}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v5

    const-string v6, "score"

    const-string v7, "score"

    invoke-virtual {v1, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-interface {v5, v6, v7}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v5

    invoke-interface {v5}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 1010
    invoke-interface {v4}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v5

    const-string v6, "cost"

    const-string v7, "cost"

    invoke-virtual {v1, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-interface {v5, v6, v7}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v5

    invoke-interface {v5}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 1012
    invoke-interface {v4}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v5

    const-string v6, "pass"

    iget-object v7, p0, Lcom/example/m6wmr/LoginActivity$21;->val$password:Ljava/lang/String;

    invoke-interface {v5, v6, v7}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v5

    invoke-interface {v5}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 1014
    invoke-interface {v4}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v5

    const-string v6, "phone"

    const-string v7, "phone"

    invoke-virtual {v1, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-interface {v5, v6, v7}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v5

    invoke-interface {v5}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 1015
    invoke-interface {v4}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v5

    const-string v6, "logo"

    const-string v7, "logo"

    invoke-virtual {v1, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-interface {v5, v6, v7}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v5

    invoke-interface {v5}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 1016
    invoke-interface {v4}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v5

    const-string v6, "temppassword"

    const-string v7, "null"

    invoke-interface {v5, v6, v7}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v5

    invoke-interface {v5}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 1017
    invoke-interface {v4}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v5

    const-string v6, "juancount"

    const-string v7, "juancount"

    invoke-virtual {v1, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-interface {v5, v6, v7}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v5

    invoke-interface {v5}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 1027
    iget-object v5, p0, Lcom/example/m6wmr/LoginActivity$21;->val$msg:Landroid/os/Message;

    const/4 v6, 0x2

    iput v6, v5, Landroid/os/Message;->arg1:I

    .line 1029
    iget-object v5, p0, Lcom/example/m6wmr/LoginActivity$21;->this$0:Lcom/example/m6wmr/LoginActivity;

    # getter for: Lcom/example/m6wmr/LoginActivity;->h:Landroid/os/Handler;
    invoke-static {v5}, Lcom/example/m6wmr/LoginActivity;->access$31(Lcom/example/m6wmr/LoginActivity;)Landroid/os/Handler;

    move-result-object v5

    iget-object v6, p0, Lcom/example/m6wmr/LoginActivity$21;->val$msg:Landroid/os/Message;

    invoke-virtual {v5, v6}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_0

    .line 1031
    .end local v1    # "json":Lorg/json/JSONObject;
    .end local v4    # "userInfo":Landroid/content/SharedPreferences;
    :catch_0
    move-exception v0

    .line 1033
    .local v0, "e":Lorg/json/JSONException;
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    .line 1034
    iget-object v5, p0, Lcom/example/m6wmr/LoginActivity$21;->val$msg:Landroid/os/Message;

    const/4 v6, 0x4

    iput v6, v5, Landroid/os/Message;->arg1:I

    .line 1036
    iget-object v5, p0, Lcom/example/m6wmr/LoginActivity$21;->this$0:Lcom/example/m6wmr/LoginActivity;

    # getter for: Lcom/example/m6wmr/LoginActivity;->h:Landroid/os/Handler;
    invoke-static {v5}, Lcom/example/m6wmr/LoginActivity;->access$31(Lcom/example/m6wmr/LoginActivity;)Landroid/os/Handler;

    move-result-object v5

    iget-object v6, p0, Lcom/example/m6wmr/LoginActivity$21;->val$msg:Landroid/os/Message;

    invoke-virtual {v5, v6}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 1044
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 1045
    monitor-exit p0

    return-void

    .line 1044
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
